import request from '@/utils/request'
// 根据类别删除
export function allDel(query) {
    return request({
      url: '/customer/customer/delete/true/grade',
      method: 'delete',
      params: query
    })
  }
// 获取资源池列表
export function getList(data) {
  return request({
    url: '/customer/customer/list',
    method: 'get',
    params: data
  })
}
export function getData00(data) {
  return request({
    url: '/customer/the/list',
    method: 'get',
    params: data
  })
}
// 自定义上传
export function uploadFile(state,label,data) {
  return request({
    url: '/customer/customer/batchImport?state='+state+'&label='+label,
    method: 'post',
    data: data
  })
}
// 获取资源下发列表
export function getSysUserList(data) {
    return request({
      url: '/customerApply/getSysUserList',
      method: 'post',
      data: data
    })
  }
// 下发接口
export function appleSubmitForm(data) {
    return request({
      url: '/customer/customer/updateCompanyUserId',
      method: 'post',
      data: data
    })
  }
// 删除封装
export function deleteData(id) {
    return request({
      url: '/customer/customer/'+id,
      method: 'delete'
    })
  }
// 获取数据
export function getData(data) {
  return request({
    url: '/customer/customer/list',
    method: 'get',
    params: data
  })
}
//获取资源到个人的客户管理
export function getSharedCustomer(data) {
    return request({
      url: '/shared/addSharedCustomer',
      method: 'post',
      data: data
    })
  }
// 新增
export function submitAptitudeForm(data) {
  return request({
    url: '/customer/customer',
    method: 'post',
    data: data
  })
}
// 更新
export function update(data) {
  return request({
    url: '/customer/customer',
    method: 'put',
    data:data
  })
}
// 查询用户列表
export function listUser() {
  return request({
    url: '/system/user/alllist',
    method: 'get'
  })
}
  // 保存数据
export function submitForm(url,data) {
    return request({
      url: url,
      method: 'post',
      data: data
    })
  }
// 获取数据
export function getDataMore(data) {
    return request({
      url: '/certificateType/getCertificateTypeList',
      method: 'post',
      data: data
    })
  }

  export function getLabels(data) {
    return request({
      url: '/system/manager/list',
      method: 'get',
      params:data
    })
  }